package com.meiricai.app.tasks;

import java.util.List;

import com.meiricai.sdk.*;
import com.meiricai.sdk.models.*;

import android.os.AsyncTask;

public class DemoTask extends AsyncTask<Integer, Integer, String> {

	@Override
	protected String doInBackground(Integer... params) {
		LotteryDrawClient client = new LotteryDrawClient();
		try {
			List<LotteryDraw> result = client.getLatestLotteryDraws(10, 1);
			
			LotteryDraw lotteryDraw=result.get(0);
			System.out.println(lotteryDraw.Game);
			
			System.out.println(result.toString());
			
			return result.toString();
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}
}
